﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace Himp.DataHub
{
    public class DrugCatalogExtDto : EntityDto<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid DrugCatalogId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DrugCatalogDto DrugCatalog { get; set; }

        /// <summary>
        /// 药品编码
        /// </summary>
        public string DrugCodg { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        public string? Pinyincode { get; set; }

        /// <summary>
        /// 五笔助记码
        /// </summary>
        public string? Wubicode { get; set; }

        /// <summary>
        /// 药品规格
        /// </summary>
        public string DrugSpec { get; set; }

        /// <summary>
        /// 每次用量
        /// </summary>
        public decimal EachDos { get; set; }

        /// <summary>
        /// 最小计量单位
        /// 用量单位
        /// 例如 g 、mg
        /// </summary>
        public string MinUntCode { get; set; }

        /// <summary>
        /// 最小计量单位
        /// 用量单位
        /// </summary>
        public string MinUntName { get; set; }

        /// <summary>
        /// 最小使用单位
        /// 例如 瓶 、支
        /// </summary>
        public string MinUseuntCode { get; set; }

        /// <summary>
        /// 最小使用单位
        /// min_useunt
        /// 例如 瓶 、支
        /// </summary>
        public string MinUseuntName { get; set; }

        /// <summary>
        /// 最小销售单位
        /// 零售单位
        /// drug_salunt
        /// </summary>
        public string MinSaluntCode { get; set; }

        /// <summary>
        /// 最小销售单位
        /// 零售单位
        /// drug_salunt
        /// </summary>
        public string MinSaluntName { get; set; }

        /// <summary>
        /// 最小包装数量
        /// </summary>
        public decimal MinPacCnt { get; set; }

        /// <summary>
        /// 最小包装单位
        /// </summary>
        public string MinPacuntCode { get; set; }

        /// <summary>
        /// 最小包装单位
        /// </summary>
        public string MinPacuntName { get; set; }

        /// <summary>
        /// 最小制剂单位
        /// </summary>
        public string MinPrepuntCode { get; set; }

        /// <summary>
        /// 最小制剂单位
        /// </summary>
        public string MinPrepuntName { get; set; }

        /// <summary>
        /// 入库单价
        /// </summary>
        public decimal? StoinPric { get; set; }

        /// <summary>
        /// 零售单价
        /// </summary>
        public decimal? RtalPric { get; set; }

        /// <summary>
        /// 计价单位类型
        /// (prcunt_type)
        /// 1 最小计量单位
        /// 2 包装单位
        /// </summary>
        public string PrcuntTypeCode { get; set; }

        /// <summary>
        /// 计价单位类型
        /// (prcunt_type)
        /// </summary>
        public string PrcuntTypeName { get; set; }

        ///// <summary>
        ///// 最小计价单位
        ///// </summary>
        //public string MinPrcuntCode { get; set; }

        ///// <summary>
        ///// 最小计价单位
        ///// </summary>
        //public string MinPrcuntName { get; set; }

        // <summary>
        /// 药品追溯码
        /// </summary>
        public string? DrugTracCodg { get; set; }

        // <summary>
        /// 药品条形码
        /// </summary>
        public string? DrugProdBarc { get; set; }

        // <summary>
        /// ddd值
        /// </summary>
        public string? Ddd { get; set; }

        /// <summary>
        /// 厂商ID
        /// </summary>
        public Guid DrugPrdrId { get; set; }

        /// <summary>
        /// 厂商
        /// </summary>
        public DrugPrdrDto DrugPrdr { get; set; }

        // <summary>
        /// 批准文号
        /// </summary>
        public string? Aprvno { get; set; }

        /// <summary>
        /// 说明书
        /// </summary>
        public string? Manl { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool ChkFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? ChkerId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string? ChkerName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? ChkTime { get; set; }
    }
}
